Ext.define('TS.view.base.UserDeptList' ,{
    extend: 'Ext.grid.Panel',
    alias : 'widget.userdeptlist',
    title : '用户所属部门',
    columnLines: true,
    bodyPadding:0,
    frame : true,//面板渲染
    closable: true,
    store: 'base.DeptStore',
    columns:[
            {header: '名称',  dataIndex: 'deptName',  flex: 1},
            {
	             header: '是否默认',
	             dataIndex: 'defaultDept',
	             flex: 1,
	             xtype : "booleancolumn",
				 width:50,
				 trueText:'<font color="red">是</font>',
				 falseText:'否' 
			 }
    ],
	selType:'checkboxmodel',//设定选择模
	multiSelect:true,//运行多选
	initComponent:function(){
		this.callParent(arguments);
	},
	listeners: {
		render:{
			fn:function(){
				//this.store.load();
			}
		}
	}
});